package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.nursing.domain.AlertData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author zzw
 * @date 2025/6/11
 * @description 后端报警数据分页查询参数
 */
@Data
@ApiModel("报警数据分页查询参数")
public class AlertDataTableDto extends AlertData {

    @ApiModelProperty("设备名称")
    private String deviceName;

    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty("状态,0:待处理，1:已处理")
    private Integer status;
}
